package com.lening.provider.service.impl.InformationManagement;

import com.lening.common.base.BaseServiceImpl;
import com.lening.provider.dao.InformationManagement.NewsClassificationDAO;
import com.lening.provider.dto.InformationManagement.NewsClassificationDTO;
import com.lening.provider.po.InformationManagement.NewsClassificationPO;
import com.lening.provider.service.InformationManagement.NewsClassificationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 刘政华
 * @datetime 2024/6/5 11:30
 * @description 类对象
 */
@Slf4j
@Service
public class NewsClassificationServiceImpl extends BaseServiceImpl<NewsClassificationDAO, NewsClassificationPO, NewsClassificationDTO> implements NewsClassificationService {

    @Resource
    private NewsClassificationDAO newsClassificationDAO;

    @Override
    public List<NewsClassificationDTO> getByName(String classificationName) {
        return newsClassificationDAO.getByName(classificationName);
    }
}
